import request from '@/utils/request'

export const login = (data) => {
  return request.post('/sys/login', data)
}
export const getInfo = () => {
  return request.post('/sys/profile')
}
export const getUserId = (id) => {
  // console.log(id)
  return request.get(`/sys/user/${id}`)
}

/**
 * @description: 获取用某个用户的信息
 * @param {*} id
 * @return {*}
 */
export const getUserDetailById = id => {
  return request.get(`/sys/user/${id}`)
}
